FROM openjdk:11.0-jdk

WORKDIR /opt/customer
COPY ./build/libs/customer-service-1.2.jar /opt/customer/customer.jar
ENV log.path /opt/customer/logs
ENV NACOS nacos
ENV NACOS_PORT 8848
VOLUME ["/opt/customer"]
EXPOSE 8002
ENTRYPOINT ["java", "-jar", "/opt/customer/customer.jar"]
